package com.s3s.ssm.view.cashier;

import javax.swing.JPanel;

import java.awt.BorderLayout;

import javax.swing.JScrollPane;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;
import javax.swing.border.TitledBorder;

public class DishPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public DishPanel() {
		setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "Danh sach mon", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		scrollPane.setViewportView(panel);
		panel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
		
		JButton lblNewLabel = new JButton("Cafe da");
		lblNewLabel.setContentAreaFilled(false);
		lblNewLabel.setHorizontalTextPosition(SwingConstants.CENTER);
		lblNewLabel.setVerticalTextPosition(SwingConstants.BOTTOM);
		lblNewLabel.setIcon(new ImageIcon(DishPanel.class.getResource("/images/dish.png")));
		panel.add(lblNewLabel);
		
		JButton lblCafeNng = new JButton("Cafe n\u00F3ng");
		lblCafeNng.setContentAreaFilled(false);
		lblCafeNng.setHorizontalTextPosition(SwingConstants.CENTER);
		lblCafeNng.setVerticalTextPosition(SwingConstants.BOTTOM);
		lblCafeNng.setIcon(new ImageIcon(DishPanel.class.getResource("/images/dish.png")));
		panel.add(lblCafeNng);

	}

}
